package com.mocha.bss.domain.org.output;

import com.coffee.core.CoffeeResponse;
import com.coffee.core.CoffeeResponseEnum;
import com.mocha.bss.org.dto.UserDTO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * API 是 提供外部接口 ，比如 其他平台调用 本系统接口；
 * @author songkui
 * @since 2022-02-11
 * @version v2.0
 */
@Slf4j
@RestController
@RequestMapping("/user")
@AllArgsConstructor
public class UserAPI {

    @PostMapping("/test/api")
    public CoffeeResponse<?> testApi(@RequestBody UserDTO userPo) {
        return CoffeeResponse.response(CoffeeResponseEnum.Success);
    }



}
